import request from '@/utils/request'

// 查询合同计划列表
export function listContractPlanInfo(query) {
  return request({
    url: '/contract/ContractPlanInfo/list',
    method: 'get',
    params: query
  })
}

// 查询合同计划详细
export function getContractPlanInfo(planId) {
  return request({
    url: '/contract/ContractPlanInfo/' + planId,
    method: 'get'
  })
}

// 新增合同计划
export function addContractPlanInfo(data) {
  return request({
    url: '/contract/ContractPlanInfo',
    method: 'post',
    data: data
  })
}

// 修改合同计划
export function updateContractPlanInfo(data) {
  return request({
    url: '/contract/ContractPlanInfo',
    method: 'put',
    data: data
  })
}

// 删除合同计划
export function delContractPlanInfo(planId) {
  return request({
    url: '/contract/ContractPlanInfo/' + planId,
    method: 'delete'
  })
}
